package com.hammera.common.permission

import android.app.Activity

interface IPermissionCallBack {
    /**
     * 全部授权成功
     *
     * @param requestCode
     */
    fun success(activity: Activity, requestCode: Int)

    /**
     * 某个、某些权限被拒绝
     *
     * @param requestCode
     * @param deniedPermissions
     */
    fun fail(activity: Activity, requestCode: Int, vararg deniedPermissions: String)

    /**
     * 用户拒绝并勾选了下次不再提醒
     *
     * @param requestCode
     * @param deniedPermissions
     */
    fun alwaysDenied(activity: Activity, requestCode: Int, vararg deniedPermissions: String)

}